AUTOMAKE_OPTIONS= subdir-objects

AM_CPPFLAGS	=   -I$(top_srcdir)/include \
                -I$(top_srcdir)/external/secp256k1/include \
                -I$(top_srcdir)/external/secp256k1/contrib

lib_LTLIBRARIES= libccoin.la

libccoin_la_LIBADD= -lm \
                    $(top_builddir)/external/secp256k1/libsecp256k1.la

libccoin_la_SOURCES=	\
	crypto/fortuna.c    \
	crypto/hmac.c	    \
	crypto/prng.c   \
	crypto/random.c     \
	crypto/rijndael.c   \
	crypto/ripemd160.c	\
	crypto/sha1.c	\
	crypto/sha2.c	\
	address.c	\
	addr_match.c	\
	base58.c	\
	bignum.c	\
	blkdb.c		\
	block.c		\
	blockfile.c	\
	bloom.c		\
	buffer.c	\
	buint.c		\
	checkpoints.c	\
	clist.c		\
	core.c		\
	coredefs.c	\
	cstr.c		\
	hdkeys.c	\
	hexcode.c	\
	file_seq.c	\
	hashtab.c	\
	key.c		\
	keyset.c	\
	keystore.c	\
	log.c		\
	mbr.c		\
	memmem.c	\
	message.c	\
	parr.c		\
	script.c	\
	script_eval.c	\
	script_names.c	\
	script_sign.c	\
	serialize.c	\
	util.c		\
	utxo.c		\
	wallet.c

noinst_LTLIBRARIES= libccoinnet.la libccoinaes.la

libccoinnet_la_SOURCES=	\
	net/dns.c	\
	net/net.c	\
	net/netbase.c	\
	net/peerman.c

libccoinaes_la_SOURCES=	\
    crypto/aes_util.c   \
    crypto/ctaes.c
